<? include('highscore-selection.php'); ?>


<table id="highscore" border="0" cellpadding="3" cellspacing="2">
<thead>	
	<tr>
		<th id="rang">Rang</th>
		<th id="name">Name</th>
		<th id="points" colspan="2">Punkte</th>
		<?php if ($selection == 'bestof'): ?>
			<th><?=lang('matchday')?></th>
		<?php endif; ?>
	</tr>
  </thead>	
  <tbody>
<?php $i=1; foreach($user as $u): ?>

	<?php
	  if ($i % 2 == 0) $class="even"; else $class="odd"; 
	  if ($i<6) $class="top5".$class; 
	  if ($u->id == $userdata->id) $class="currentuser";
	?>

	<tr class="<?=$class?>">
		<td class="right"><?=$i++?>.</td>
		<td><a href="<?=site_url('user/showuser/'.$u->id.'/matches')?>"><?=$u->name?></a></td>
		<td class="detailedpoints right"
			title="<? printf(lang('highscore_tooltip_points'), $u->tendency, $u->difference, $u->perfect, $u->wrong);?>"><small>
			<?=$u->tendency?>/<?=$u->difference?>/<?=$u->perfect?>/<?=$u->wrong?>
			</small></td>
			
		<td class="right"><strong><?=$u->points?></strong></td>
		<?php if ($selection == 'bestof'): ?>
			<td class="right"><?=$u->matchgroup?></td>
		<?php endif; ?>
	</tr>
<?php endforeach; ?>

</tbody></table>